import langMap from './zh'
function getLang(key) {
    console.log()
    let title = '';
    if(langMap.langMap.get(key)){
        if(this.$store.state.lang.lang == 'zh'){
            title = key ? key : langMap.langMap.get(key);
        } else{
            title = key ? langMap.langMap.get(key) : key;
        }
    } else{
        title = key;
    }
    return title
}
export default getLang
